﻿using MiniFox.Resources;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Platform.File.Models
{
    /// <summary>
    /// 
    /// </summary>
    public class FolderCreation
    {
        /// <summary>
        /// 
        /// </summary>
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        public string FolderName { get; set; } = string.Empty;
        /// <summary>
        /// 父级目录
        /// </summary>
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        public string Path { get; set; } = string.Empty;
    }

    /// <summary>
    /// 
    /// </summary>
    public class FolderRename
    {
        /// <summary>
        /// 
        /// </summary>
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        public string NewName { get; set; } = string.Empty;
        /// <summary>
        /// 
        /// </summary>
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        public string Path { get; set; } = string.Empty;
    }

    /// <summary>
    /// 
    /// </summary>
    public class FolderMove
    {
        /// <summary>
        /// 要移动的目录ID
        /// </summary>
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        public string FolderId { get; set; } = string.Empty;
        /// <summary>
        /// 目标父目录
        /// </summary>
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        public string Path { get; set; } = string.Empty;
    }

    /// <summary>
    /// 
    /// </summary>
    public class FolderCopy
    {
        /// <summary>
        /// 要复制的目录ID
        /// </summary>
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        public string FolderId { get; set; } = string.Empty;
        /// <summary>
        /// 目标父目录
        /// </summary>
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        public string Path { get; set; } = string.Empty;
    }

}
